package org.flashbrighton.as3bots.bots
{
	import flash.display.Sprite;
	import flash.events.Event;
	
	import org.flashbrighton.as3bots.components.ChassisSize;
	import org.flashbrighton.as3bots.controllers.HouseBotController;
	
	public class HouseBot extends BaseBot
	{
		[Embed(source="housebot.swf")]
		private var Skin:Class;
		
		public function HouseBot()
		{
			init();
		}
		
		
		private function init():void
		{
			var skin:Sprite = new Skin();
			botName = "The Judge";
			addEngineComponent();
			addHealthComponent();
			addSteeringComponent();
			addBodyComponent(ChassisSize.MEDIUM, skin);
			setController(new HouseBotController());
			skin.addEventListener(Event.ENTER_FRAME, loop);
		}
		
		private function loop(e:Event):void
		{
			health.energy = 666;
		}
		
	}
}